package com.jxc.jxc01.yk.entity;


import javax.xml.crypto.Data;
import java.util.Objects;

/**
 * 出库清单
 */
public class DeliveryRecord {
    public int id;
    //出库编号
    public int num;
    //出库仓库
    public String warehouse_num;
    //出库商品
    public String out_commodity_name;
    //规格
    public String specification;
    //出库数量
    public int out_warehouse_num;
    //出库单价
    public double outbound_unit_price;
    //总价
    public double totalprice;
    //出库人
    public String warehouse_person;
    //是否出库
    public boolean whether_outbound;
    //创建时间
    public Data create_time;
    //出库时间
    public Data outbound_time;


    public DeliveryRecord() {
    }

    public DeliveryRecord(int id, int num, String warehouse_num, String out_commodity_name, String specification, int out_warehouse_num, double outbound_unit_price, double totalprice, String warehouse_person, boolean whether_outbound, Data create_time, Data outbound_time) {
        this.id = id;
        this.num = num;
        this.warehouse_num = warehouse_num;
        this.out_commodity_name = out_commodity_name;
        this.specification = specification;
        this.out_warehouse_num = out_warehouse_num;
        this.outbound_unit_price = outbound_unit_price;
        this.totalprice = totalprice;
        this.warehouse_person = warehouse_person;
        this.whether_outbound = whether_outbound;
        this.create_time = create_time;
        this.outbound_time = outbound_time;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return num
     */
    public int getNum() {
        return num;
    }

    /**
     * 设置
     * @param num
     */
    public void setNum(int num) {
        this.num = num;
    }

    /**
     * 获取
     * @return warehouse_num
     */
    public String getWarehouse_num() {
        return warehouse_num;
    }

    /**
     * 设置
     * @param warehouse_num
     */
    public void setWarehouse_num(String warehouse_num) {
        this.warehouse_num = warehouse_num;
    }

    /**
     * 获取
     * @return out_commodity_name
     */
    public String getOut_commodity_name() {
        return out_commodity_name;
    }

    /**
     * 设置
     * @param out_commodity_name
     */
    public void setOut_commodity_name(String out_commodity_name) {
        this.out_commodity_name = out_commodity_name;
    }

    /**
     * 获取
     * @return specification
     */
    public String getSpecification() {
        return specification;
    }

    /**
     * 设置
     * @param specification
     */
    public void setSpecification(String specification) {
        this.specification = specification;
    }

    /**
     * 获取
     * @return out_warehouse_num
     */
    public int getOut_warehouse_num() {
        return out_warehouse_num;
    }

    /**
     * 设置
     * @param out_warehouse_num
     */
    public void setOut_warehouse_num(int out_warehouse_num) {
        this.out_warehouse_num = out_warehouse_num;
    }

    /**
     * 获取
     * @return outbound_unit_price
     */
    public double getOutbound_unit_price() {
        return outbound_unit_price;
    }

    /**
     * 设置
     * @param outbound_unit_price
     */
    public void setOutbound_unit_price(double outbound_unit_price) {
        this.outbound_unit_price = outbound_unit_price;
    }

    /**
     * 获取
     * @return totalprice
     */
    public double getTotalprice() {
        return totalprice;
    }

    /**
     * 设置
     * @param totalprice
     */
    public void setTotalprice(double totalprice) {
        this.totalprice = totalprice;
    }

    /**
     * 获取
     * @return warehouse_person
     */
    public String getWarehouse_person() {
        return warehouse_person;
    }

    /**
     * 设置
     * @param warehouse_person
     */
    public void setWarehouse_person(String warehouse_person) {
        this.warehouse_person = warehouse_person;
    }

    /**
     * 获取
     * @return whether_outbound
     */
    public boolean isWhether_outbound() {
        return whether_outbound;
    }

    /**
     * 设置
     * @param whether_outbound
     */
    public void setWhether_outbound(boolean whether_outbound) {
        this.whether_outbound = whether_outbound;
    }

    /**
     * 获取
     * @return create_time
     */
    public Data getCreate_time() {
        return create_time;
    }

    /**
     * 设置
     * @param create_time
     */
    public void setCreate_time(Data create_time) {
        this.create_time = create_time;
    }

    /**
     * 获取
     * @return outbound_time
     */
    public Data getOutbound_time() {
        return outbound_time;
    }

    /**
     * 设置
     * @param outbound_time
     */
    public void setOutbound_time(Data outbound_time) {
        this.outbound_time = outbound_time;
    }

    public String toString() {
        return "DeliveryRecord{id = " + id + ", num = " + num + ", warehouse_num = " + warehouse_num + ", out_commodity_name = " + out_commodity_name + ", specification = " + specification + ", out_warehouse_num = " + out_warehouse_num + ", outbound_unit_price = " + outbound_unit_price + ", totalprice = " + totalprice + ", warehouse_person = " + warehouse_person + ", whether_outbound = " + whether_outbound + ", create_time = " + create_time + ", outbound_time = " + outbound_time + "}";
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DeliveryRecord that = (DeliveryRecord) o;
        return id == that.id && num == that.num && out_warehouse_num == that.out_warehouse_num && Double.compare(that.outbound_unit_price, outbound_unit_price) == 0 && Double.compare(that.totalprice, totalprice) == 0 && whether_outbound == that.whether_outbound && Objects.equals(warehouse_num, that.warehouse_num) && Objects.equals(out_commodity_name, that.out_commodity_name) && Objects.equals(specification, that.specification) && Objects.equals(warehouse_person, that.warehouse_person) && Objects.equals(create_time, that.create_time) && Objects.equals(outbound_time, that.outbound_time);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, num, warehouse_num, out_commodity_name, specification, out_warehouse_num, outbound_unit_price, totalprice, warehouse_person, whether_outbound, create_time, outbound_time);
    }
}
